<template>
    <swiper :options="swiperOption" ref="mySwiper" class="wrapper">
      <swiper-slide v-for="item of swiperList" :key="item.id">
        <img :src="item.imgUrl" class="swiper-img">
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
</template>

<script>

export default {
  name: 'HomeSwiper',
  props: {
    swiperList: Array
  },
  data () {
    return {
      swiperOption: {
          autoplay: 3000,
          pagination: {
            el: '.swiper-pagination'
          }
        },
    }
  },
  methods: {

  }
}

</script>

<style lang="stylus" scoped>
   .wrapper >>> .swiper-pagination-bullet-active
    background: #fff;
  .wrapper
    .swiper-img
      width: 100%
      height: 4/15vm
</style>